import request from '@/utils/request'

// 用户列表 (含分页)
export function getUserList(data: { page: number }) {
  return request({
    url: '/api/users',
    method: 'get',
    params: data
  })
}

// 添加用户
export function addUser(data: {
  username: string
  password: string
  email: string
  gender: number
  monile: number
}) {
  return request({
    url: '/api/users/add',
    method: 'post',
    data
  })
}
